package com.gomyb.datasources;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author <a href="mailto:hellohesir@gmail.com">Mr_He</a>
 * 2019/4/17 16:59
 * 插件开启方式参见
 * https://mp.baomidou.com/guide/page.html
 *
 */
//@EnableTransactionManagement
//@Configuration
//@MapperScan("com..*.dao")
public class MybatisPlusConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
